import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import path from "path";

// https://vite.dev/config/
export default defineConfig({
  plugins: [vue()],
  server: {
    port: 3000,
  },
  build: {
    outDir: path.resolve(__dirname, "../../dist/vite-app"), // 指向根目录的dist
    emptyOutDir: true, // 构建前清空目录
  },
});
